package com.cqxyd.smartsite.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author Angus Yu
 * @date 2020-05-13 19:14
 */
public class EnvRecord {
    @JsonInclude(Include.NON_EMPTY)
    private String sourceId;
    private String serialNo;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date recordTime;

    private Double temperature;
    private Double humidity;
    private Double pm2p5;
    private Double pm10;
    private Double noise;
    private Double windSpeed;
    private Double windDirection;

    public String getSourceId() {
        return sourceId;
    }

    public void setSourceId(String sourceId) {
        this.sourceId = sourceId;
    }


    public String getSerialNo() {
        return serialNo;
    }

    public void setSerialNo(String serialNo) {
        this.serialNo = serialNo;
    }

    public Date getRecordTime() {
        return recordTime;
    }

    public void setRecordTime(Date recordTime) {
        this.recordTime = recordTime;
    }

    public Double getTemperature() {
        return temperature;
    }

    public void setTemperature(Double temperature) {
        this.temperature = temperature;
    }

    public Double getHumidity() {
        return humidity;
    }

    public void setHumidity(Double humidity) {
        this.humidity = humidity;
    }

    public Double getPm2p5() {
        return pm2p5;
    }

    public void setPm2p5(Double pm2p5) {
        this.pm2p5 = pm2p5;
    }

    public Double getPm10() {
        return pm10;
    }

    public void setPm10(Double pm10) {
        this.pm10 = pm10;
    }

    public Double getNoise() {
        return noise;
    }

    public void setNoise(Double noise) {
        this.noise = noise;
    }

    public Double getWindSpeed() {
        return windSpeed;
    }

    public void setWindSpeed(Double windSpeed) {
        this.windSpeed = windSpeed;
    }

    public Double getWindDirection() {
        return windDirection;
    }

    public void setWindDirection(Double windDirection) {
        this.windDirection = windDirection;
    }

    @Override
    public String toString() {
        return "EnvRuntime{" +
                "temperature=" + temperature +
                ", humidity=" + humidity +
                ", pm2p5=" + pm2p5 +
                ", pm10=" + pm10 +
                ", noise=" + noise +
                ", windSpeed=" + windSpeed +
                ", windDirection=" + windDirection +
                '}';
    }
}
